from enum import Enum
from fastapi import FastAPI
app = FastAPI()


class MobotType(str, Enum):
    business = "business"
    story = "story"
    qa = "qa"


@app.get("/mobot/type/{type}")
def get_mobot_type(type: MobotType):
    return {"message": f"Mobot 的类型是 {type}"}
